<?php
$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
	'Login',
);
?>

<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/login.css" />

	
<div id="master_container" >
	
	
		<div id="login_box">
		<div id="title">Welcome</div>
		<?php $form=$this->beginWidget('CActiveForm', array(
			'id'=>'login-form',
			'enableClientValidation'=>true,
			'clientOptions'=>array(
			'validateOnSubmit'=>true,
			),
		)); ?>
     <!--echo error at the beginer  -->
	<div class="login_form">
	<?php echo $form->error($model,'username'); ?>
		<?php echo $form->error($model,'password'); ?>
		<?php echo $form->error($model,'rememberMe'); ?>
	</div>
			<!-- end echo error  -->
	<div class="inputForm">
		<?php echo $form->labelEx($model,'username'); ?></span>
		<?php echo $form->textField($model,'username'); ?>	
	</div>

	<div class="inputForm">
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password'); ?>
		
	</div>
	<div id="remember">
		<?php echo $form->label($model,'rememberMe'); ?>
		<?php echo $form->checkBox($model,'rememberMe'); ?>
	
		<br>
	</div>
	
		<div id="login-button">
		<?php echo CHtml::imageButton(Html::imageUrl('btn_log_in.png')); ?>
		</div>
		
		<div id="lost">
			
              <?php echo CHtml::link("Lost password", Yii::app()->createUrl("/login/lostPassword"));?>
		
		</div>

<?php echo Yii::app()->user->getFlash('index');?>	

<?php $this->endWidget(); ?>



</div></div>
</section>

